package com.bootdo.qr.service.impl;

import com.bootdo.qr.dao.QrCodeDao;
import com.bootdo.qr.domain.QrCodeDO;
import com.bootdo.qr.service.QrCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;



@Service
@Transactional
public class QrCodeServiceImpl implements QrCodeService {
	@Autowired
	private QrCodeDao qrCodeDao;
	
	@Override
	public QrCodeDO get(Long id){
		return qrCodeDao.get(id);
	}
	
	@Override
	public List<QrCodeDO> list(Map<String, Object> map){
		return qrCodeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return qrCodeDao.count(map);
	}
	
	@Override
	public int save(QrCodeDO qrCode){
		return qrCodeDao.save(qrCode);
	}
	
	@Override
	public int update(QrCodeDO qrCode){
		return qrCodeDao.update(qrCode);
	}
	
	@Override
	public int remove(Long id){
		return qrCodeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return qrCodeDao.batchRemove(ids);
	}
	
}
